package cn.bdqn.service.impl;

import cn.bdqn.dao.ExamMapper;
import cn.bdqn.pojo.Exam;
import cn.bdqn.service.ExamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ExamServiceImpl implements ExamService {
    @Autowired
    ExamMapper examMapper;
    @Override
    public List<Exam> listAll() {
        return examMapper.listAll();
    }

    @Override
    public int del(Integer id) {
        return examMapper.del(id);
    }

    @Override
    public int insert(Exam exam) {
        return examMapper.insert(exam);
    }

    @Override
    public Exam listAllByid(Integer id) {
        return examMapper.listAllByid(id);
    }

    @Override
    public Integer upd(Exam exam) {
        return examMapper.upd(exam);
    }
}
